<extend name="Public/baseConf"/>
<block name="breadcrumb"> 
	<div class="row wrapper border-bottom white-bg page-heading">
	    <div class="col-lg-4">
	        <h2>行为日志</h2>
	        <ol class="breadcrumb">
	            <li><a href="{:U('index/index')}">首页</a></li>
	            <li class="active">
	                <strong>行为日志</strong>
	            </li>
	        </ol>
	    </div>
	    <div class="col-lg-8">
            <div class="title-action">
				<span class="block pull-right">
					<a class="btn btn-primary" href="{:U('clear')}">
						<i class="fa fa-trash align-top"></i>清空
					</a>
			        <button class="btn btn-danger ajax-post" url="{:U('remove')}" target-form="ids">
						<i class="fa fa-trash align-top"></i>删 除
					</button>
				</span>
            </div>
        </div>
	</div>
</block>
<block name="body">
<div class="row">
    <div class="col-lg-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>行为日志列表</h5>
                <div class="ibox-tools">
                    <a class="collapse-link">
                        <i class="fa fa-chevron-up"></i>
                    </a>
                </div>
            </div>
            <div class="ibox-content">
                <div class="table-responsive">
	                 <form class="ids">
		                 <table class="table table-striped table-bordered table-hover dataTables-example" >
		                  <thead>
		                  <tr>
								<th class="center row-selected row-selected">
								<label><input type="checkbox" class="check-all" /><span class="lbl"></span></label></th>
								<th>编号</th>
								<th>行为名称</th>
								<th>执行者</th>
								<th>执行时间</th>
								<th>操作</th>
								<th></th>
		                  </tr>
		                  </thead>
		                  <tbody>
								<notempty name="_list">
								<volist name="_list" id="vo">
								<tr><td class="center">
										<label>
											<input type="checkbox" class="ids" name="id[]" value="{$vo.id}"/>
											<span class="lbl"></span>
										</label>
									</td>
									<td>{$vo.id} </td>
									<td>{:get_action($vo['action_id'],'title')}</td>
									<td>{:get_nickname($vo['user_id'])}</td>
									<td><span>{$vo.create_time|time_format}</span></td>
									<td><a href="{:U('Action/edit?id='.$vo['id'])}">详细</a>
										<a class="confirm ajax-get" href="{:U('Action/remove?ids='.$vo['id'])}">删除</a>
						                </td>
						            <td></td>
								</tr>
								</volist>
								<else/> 
								<td colspan="9" class="text-center"> aOh! 暂时还没有内容! </td>
								</notempty>
		                  </tbody>
		                 </table>
		           	</form>
		           	<div class="page pull-right">
			     	{$_page}
		 			</div>
	            </div>
            </div>
        </div>
    </div>
</div>
</block>
<block name="script">
<script type="text/javascript">
$(function(){
	$("#action_add").click(function(){
		window.location.href = $(this).attr('url');
	})
})
</script>
</block>